<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->post('/common/sort', 'CommonController@sort');


    $router->resource('/news', 'NewsController');
    $router->resource('/newsExtra', 'NewsExtraController');
    $router->get('menu/get', 'MenuController@get');
    $router->resource('menu', 'MenuController');
    $router->resource('slide', 'SlideController');

    $router->resource('config', 'ConfigController');

    $router->resource('resource', 'ResourceController');
    $router->resource('friend', 'FriendController');

});
